package com.lagou.springbootwork.mapper;

import com.lagou.springbootwork.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @ClassName CommentMapper
 * @Deseription TODO
 * @Author fx
 * @Date 2021/1/7 0007 21:41
 * @Version 1.0
 **/
@Mapper
public interface CommentMapper {

    @Select("select * from t_comment where id = #{id}")
    public Comment findById(Integer id) throws Exception;
}
